package com.sciencep.pro.core.dao;

import com.sciencep.pro.core.domain.entity.UserLeave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author Sciencep
 */
public interface UserLeaveMapper extends BaseMapper<UserLeave> {

    int getRecord(UserLeave userLeave);

    int delLeave(@Param("userId") String userId,@Param("dateFrom") Date dateFrom,@Param("dateEnd") Date dateEnd);
}
